home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
t_sys5
/
unixcpio.gz
/
unixnet.cpio
/
eccmd.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-11
|
726b
|
30 lines
#include "global.h"
#include "mbuf.h"
#include "iface.h"
#include "ec.h"
int
doetherstat(argc,argv)
int argc;
char *argv[];
{
register struct ec *ecp;
char buf[20];
for(ecp = ec;ecp < &ec[nec]; ecp++){
pether(buf,ecp->iface->hwaddr);
printf("Controller %u, Ethernet address %s\n",ecp-ec,buf);
printf("recv bad overf drop nomem intrpt\n");
printf("%-10lu%-10lu%-10lu%-10lu%-10lu%-10lu\n",
ecp->estats.recv,ecp->estats.bad,ecp->estats.over,
ecp->estats.drop,ecp->estats.nomem,ecp->estats.intrpt);
printf("xmit timeout jam jam16\n");
printf("%-10lu%-10lu%-10lu%-10lu\n",
ecp->estats.xmit,ecp->estats.timeout,ecp->estats.jam,
ecp->estats.jam16);
}
return 0;
}